#include "OMInterfaceDX9.h"
#include "OMInterfaceDX10.h"

COMInterfaceBase *COMInterfaceBase::CreateOMInterface( )
{
    switch (g_ApiVersion)
    {
    case V_D3D9:
        return new COMInterfaceDX9;
    case V_D3D10:
        return new COMInterfaceDX10;
    }

    return NULL;
}
